package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu006.req.BHReqPhoneContactAuthDto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu006.res.BHResPhoneContactAuthDto;

/**
 * 手机常用联系人验证
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机常用联系人验证" , info = "验证目标手机号是否为查询验证号码的常用联系人（支持联通、移动）")
public class BHPhoneContactAuthApi implements ParentFace<BHReqPhoneContactAuthDto, BHResPhoneContactAuthDto> {

    private static final String PRODUCT_CODE = "MBASUT06";

    @Override
    public BHResPhoneContactAuthDto execute(BHReqPhoneContactAuthDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResPhoneContactAuthDto.class);
    }
}
